using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Text;
using System.Windows.Forms;

namespace SSOConfigTool.Windows.UserControls
{
    public partial class ucOKCancel : UserControl
    {
        public ucOKCancel()
        {
            InitializeComponent();
        }

        public delegate void ButtonClickedHandler();

        public event ButtonClickedHandler OKClicked;
        public event ButtonClickedHandler CancelClicked;

        public Button OKButton
        {
            get { return this.btnOK; }
        }

        private void btnOK_Click(object sender, EventArgs e)
        {
            if (this.OKClicked != null)
            {
                this.OKClicked();
            }
        }

        private void btnCancel_Click(object sender, EventArgs e)
        {
            if (this.CancelClicked != null)
            {
                this.CancelClicked();
            }
        }
    }
}
